package com.sharer.last.base.model;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 封装分页结果集
 */
@Data
public class QueryVO<T> implements Serializable {
    private static final long serialVersionUID = -7868183052038839097L;
    private int offset = 1; // 当前偏移量
    private long total = 0; // 总记录数
    private List<T> rows; // 结果集

    public QueryVO() {

    }

    public QueryVO(int offset, long total, List<T> rows) {
        this.offset = offset;
        this.total = total;
        this.rows = rows;
    }


}
